package chapter12;

/**
 * @author : DuJiabao
 * @Date : 2021/2/20 21:12
 * @Project : thinking-in-java
 * @File : null.java
 * @Desc :
 */
public class Cleanup {
  public static void main(String[] args) {
    try {
      InputFile in = new InputFile("Cleanup.java");

      try {
        String s;
        int i = 1;
        while ((s = in.getLine()) != null) ;
      } catch (Exception e) {
        System.out.println("捕获异常");
      } finally {
        in.dispose();
      }
    } catch (Exception e) {
      System.out.println("文件开启失败");
    }
  }
}
